﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Admin.Master" AutoEventWireup="true" CodeBehind="AdminSubj.aspx.cs" Inherits="TeamNitro.AdminSubj" %>
<asp:Content ID="Content1" ContentPlaceHolderID="HeadContentHolder" runat="server">
<style type="text/css">
        .style1
        {
            width: 40px;
        }
    </style>
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContentHolder" runat="server">
<table style="width:100%;">
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td>
                <h2>
                    CDS Subject</h2>
            </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td>
                <asp:GridView ID="GridView1" runat="server" AllowPaging="True" 
                    AllowSorting="True" DataSourceID="ObjectDataSource1" 
                    DataKeyNames="CDSCode">
                    <Columns>
                        <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                    </Columns>
                </asp:GridView>
                <br />
            </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td>
                &nbsp;</td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td>
                <h2>
                    Elective Subject</h2>
            </td>
        </tr>
        <tr>
            <td class="style1">
                &nbsp;</td>
            <td>
                <asp:GridView ID="GridView2" runat="server" AllowPaging="True" 
                    AllowSorting="True" DataSourceID="ObjectDataSource2" 
                    DataKeyNames="ElectiveCode">
                    <Columns>
                        <asp:CommandField ShowDeleteButton="True" ShowEditButton="True" />
                    </Columns>
                </asp:GridView>
                <asp:ObjectDataSource ID="ObjectDataSource1" runat="server" 
                    DataObjectTypeName="TeamNitro.App_Code.DBManager_Rex" 
                    DeleteMethod="DeleteCDSSubject" SelectMethod="SelectCDSSubject" 
                    TypeName="TeamNitro.App_Code.DBManager_Rex" UpdateMethod="UpdateCDSSubject">
                </asp:ObjectDataSource>
                <asp:ObjectDataSource ID="ObjectDataSource2" runat="server" 
                    DataObjectTypeName="TeamNitro.App_Code.DBManager_Rex" 
                    DeleteMethod="DeleteElectiveSubject" SelectMethod="SelectElectiveSubject" 
                    TypeName="TeamNitro.App_Code.DBManager_Rex" 
                    UpdateMethod="UpdateElectiveSubject"></asp:ObjectDataSource>
            </td>
        </tr>
    </table>
</asp:Content>
